﻿@{
    Layout = null;
}

@*评价反馈*@
<form id="form-Feedback" class="form-horizontal" onkeydown="if(event.keyCode==13){return false;}">
    <div class="form-group">
        <label class="col-sm-2 control-label"><span class="red-600">*</span>反馈内容：</label>
        <div class="col-sm-10">
            <textarea class="form-control" style="min-height:200px" name="FeedbackContent"></textarea>
            <input type="hidden" name="CommentID" id="CommentID" />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label"><span class="red-600">*</span>联系方式：</label>
        <div class="col-sm-10">
            <input class="form-control" name="Contact">
        </div>
    </div>
</form>

<script>
    $('#form-Feedback').bootstrapValidator({
        fields: {
            FeedbackContent: {
                validators: {
                    notEmpty: {
                        message: '反馈内容不能为空'
                    },
                }
            },
            Contact: {
                validators: {
                    notEmpty: {
                        message: '联系方式不能为空'
                    },
                }
            },
        }
    });
</script>